<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Hteml Helper</title>
<script type="text/javascript">
<!--

function SetAction(actionName){<br />
<br />
	document.form1.action.value=actionName;
	return true;
<br />
<br />}<br />
function SelectAll() {<br />
<br />
	

	var formVar=document.form1;
	<{foreach from=$attributes item=att name=foo}>
	formVar.doit<{$smarty.foreach.foo.index}>.checked=formVar.all.checked;
	<{/foreach}>

<br />
<br />}<br />
function SetDefualtLen() {<br />
<br />
	

	var formVar=document.form1;
	<{foreach from=$attributes item=att name=foo}>
	formVar.len<{$smarty.foreach.foo.index}>.value=formVar.defaultLen.value;
	<{/foreach}>

<br />
<br />}<br />
function SetDefualtHigh() {<br />
<br />
	

	var formVar=document.form1;
	<{foreach from=$attributes item=att name=foo}>
	formVar.tHigh<{$smarty.foreach.foo.index}>.value=formVar.defaultHigh.value;
	<{/foreach}>

<br />
<br />}<br />
function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
<br />
<br />}<br />
//-->
</script>
</head>

<body>
<form action="OtherCodeProducer.php" method="post" name="form1" target="_blank" id="form1">
  <table width="100%" border="1">
    <tr>
      <td>all
        <label>
          <input name="all" type="checkbox" id="all" onclick="SelectAll()" checked="checked" />
      </label></td>
      <td>Name</td>
      <td>Length</td>
      <td>Type</td>
      <td>Input / textarea Len, and textarea high</td>
      <td>Hide</td>
      <td>input</td>
      <td>textarea</td>
    </tr>
    <{foreach from=$attributes item=att name=foo}>
    <input name="attribute<{$smarty.foreach.foo.index}>" type="hidden" value="<{$att->attribute}>" />
    <input name="dataSize<{$smarty.foreach.foo.index}>" type="hidden" value="<{$att->newTypeSize}>" />
    <tr bgcolor="<{if $smarty.foreach.foo.index %2 ==0}>#9999FF<{else}>#FFFFCC<{/if}>">
      <td><label>
        <input type="checkbox" name="doit<{$smarty.foreach.foo.index}>" id="doit<{$smarty.foreach.foo.index}>"  checked="checked" value="<{$att->attribute}>"/>
      </label></td>
      <td><{$att->attribute}></td>
      <td><{$att->newTypeSize}></td>
      <td><{$att->newType}></td>
      <td>Len:
        <label>
          <input name="len<{$smarty.foreach.foo.index}>" type="text" id="len<{$smarty.foreach.foo.index}>" value="<{$att->newTypeSize}>" />
      ,textarea high:
      <input name="tHigh<{$smarty.foreach.foo.index}>" type="text" id="tHigh<{$smarty.foreach.foo.index}>" value="5" />
      </label></td>
      <td><input name="hide<{$smarty.foreach.foo.index}>" type="checkbox" value="" /></td>
      <td><input name="input<{$smarty.foreach.foo.index}>" type="checkbox" value=""  checked="checked"/></td>
      <td><input name="textarea<{$smarty.foreach.foo.index}>" type="checkbox" value="" /></td>

    </tr>
    <{/foreach}>
  </table>
<input name="action" type="hidden" value="" />
<input name="rowSize" type="hidden" value="<{$rowSize}>" />
<table width="100%" border="1">
  <tr>
    <td>ClassName:
      <input name="className" type="text" value="<{$className}>" /></td>
  </tr>
  <tr>
    <td><label>Data Object Name :
      <input name="dataObjectName" type="text" id="dataObjectName" value="dataObject" />
    </label></td>
  </tr>
</table>

  <label>Left of smart variable:
    <input name="left_smart" type="text" id="left_smart" value="&lt;{" size="4" />
  </label> 
  ,
  <label>right of smart
    <input name="right_smart" type="text" id="right_smart" value="}&gt;" size="4" />
  </label>

<hr />
<br />
<input name="HphCodeProducer" type="submit"  onclick="SetAction('phpcode')" value="PhpCodes"/>
<hr />

<label><br />
  <br />
</label>
<table width="100%" border="1">
  <tr>
    <td><input type="text" name="defaultLen" id="defaultLen" />
      <input type="button" name="button" id="button" value="SetDefultLen"  onclick="SetDefualtLen()"/></td>
     <td><input type="text" name="defaultHigh" id="defaultHigh" />
      <input type="button" name="button2" id="button2" value="SetDefultHigh" onclick="SetDefualtHigh()" /></td>
  </tr>
  <tr>
    <td>Imput textarea flag:
      <input name="inputTextLimit" type="text" id="inputTextLimit" value="40" /></td>
    <td><label>
      <input type="checkbox" name="tableFormat" id="tableFormat" value="1"/>
      Table
    Format class1:
    <input name="class1" type="text" id="class1" value="oddLineClass" size="16" />
     class2:
     <input name="class2" type="text" id="class2" value="evenLineClass" size="16" />
    </label></td>
  </tr>
  <tr>
    <td><label>
      <input type="submit" name="htmlEdit" id="htmlEdit" value="HtmlEdit"  onclick="SetAction('htmlEdit')"/>
    </label></td>
    <td>&nbsp;</td>
  </tr>


</table>
<label>  <br />
</label>
<hr />
<table width="100%" border="1">
  <tr>
    <td>class1:
      <input name="listClass1" type="text" id="listClass1" value="oddLineClass" size="16" />
class2:
<input name="listClass2" type="text" id="class4" value="evenLineClass" size="16" /></td>
    <td>ArrayName:
      <label>
        <input name="arrayName" type="text" id="arrayName" value="myArray" />
      </label></td>
  </tr>
  <tr>
    <td>http Link:
      <label>
        <input name="httpurl" type="text" id="httpurl" size="50" />
      </label></td>
    <td>insideForeachItemName:
      <label>
        <input name="insideForeachItemName" type="text" id="insideForeachItemName" value="myDataObject" />
      </label></td>
  </tr>
  <tr>
    <td>target:
      <label>
        <select name="target" id="target">
          <option value="_blank" selected="selected">_blank</option>
          <option value="_parent">_parent</option>
          <option value="_self">_self</option>
          <option value="_top">_top</option>
        </select>
      </label></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><input type="submit" name="a" id="a" value="HtmlList" onclick="SetAction('htmlList')" /></td>
    <td>&nbsp;</td>
  </tr>
</table>

</form>
<br />
<br /></body>
</html>
